//
//  JLCapsuleTextFieldModifier.swift
//  JLDiaryApp
//
//  Created by Jiang Chencheng on 2024/9/25.
//

import SwiftUI

struct JLCapsuleTextFieldModifier: ViewModifier {

    var textColor: Color = .white
    var backgroundColor: Color = .white.opacity(0.1)
    var height: CGFloat = 30
    
    func body(content: Content) -> some View {
        content
            .foregroundColor(textColor)
            .frame(height: height)
            .padding(.vertical, 10)
            .padding(.horizontal, 12)
            .background(backgroundColor, in: .capsule)
    }
}
